numeric a,b;
> >
> > fixes the problem in chapter 14.
>
> Woundn't newnumeric be better?
>
> There are very few instances where I want variables defined in one block
> to be reused in another block. So, I almost always use
>
> \startMPcode
> begingroup;
> .
ng
>
>numeric a,b;
>
> fixes the problem in chapter 14.
Woundn't newnumeric be better?
There are very few instances where I want variables defined in one block to be
reused in another block. So
Hi,
Here is the code that interferes with the graph from the last chapter but
why ?
\startMPcode
pickup pencircle xscaled 1;
defaultfont := "texgyrepagella-regular*default" ;
defaultscale := 0.8 ;
path circle, p, q, b;
by itself
> renders fine:
>
>
>
> Best wishes,
> Taco
> (if all else fails, you can replace \startMPcode with \startMPpage and
> generate a standalone graph that way)
>
> > On 25 Apr 2024, at 12:27, Fabrice Couvreur
> wrote:
> >
> > Hi,
> &g
H Fabrice,
You did not provide a good minimum test because the graph by itself renders
fine:
fabr.pdf
Description: Adobe PDF document
Best wishes,
Taco
(if all else fails, you can replace \startMPcode with \startMPpage and generate
a standalone graph that way)
> On 25 Apr 2024, at 12
problems
except with a graphic from the last chapter. It is indeed in chapter 14 but
not in the project ! I give the code for this graph.
Thanks.
Fabrice
\startMPcode
interim linejoin := mitered;
interim ahangle := 30;
numeric u, pi;
pi
tline" will be in the next upload so with the
current one you need to use the also posted here for ... endfor variant
also when i edit the code and replace metapost part like this:
\startMPcode
draw lmt_outline [
kind = "outline",
text
seams this code means to put a hidden text with same size behind metapost
shape.
but it does not work properly for me (current version: 2024.04.01 08:59)
and produce empty page but with searchable hidden text.
also when i edit the code and replace metapost part like this:
\startMPcode
draw
seyal.zav...@gmail.com schrieb am 09.04.2024 um 14:53:
i want to produce a gradient header
i tried this code but it does not produce any result:
\startext
\def\Mystyle#1{\startMPcode
picture tt ; tt := lmt_outline [
kind = "path",
text = "#1",
] ;
fill
i want to produce a gradient header
i tried this code but it does not produce any result:
\startext
\def\Mystyle#1{\startMPcode
picture tt ; tt := lmt_outline [
kind = "path",
text = "#1",
] ;
fill
for i within tt : pathpart i && endfor cycle
hs which implies no search but you
can do this (Keith and/or Hraban will explain and/or wikify it)
\starttext
\startbuffer[MyText]
\definedfont[name:texgyrepagellabold*default]foo f o o%
\stopbuffer
\startbuffer[MyText]
\framed[align=normal,frame=off]{\input{tufte}}%
\stopbuffer
\setb
we use another call to the same smile drawing (but in *.svg format)
% the svg file is given by Inkscape (as the smile.pdf, exported through
Inkscape)
\startMPcode
draw lmt_svg [ filename = "smile.svg"]
\stopMPcode
\stopchapter
\startchapter[title={Hans tricky drawing}]
No
st be callable on the command
> > line (which doesn’t work for me on MacOS any more, must investigate…).
> \startMPcode
> draw lmt_svg [ filename = "smile.svg"]
> \stopMPcode
>
> Now gives the attached but it took me a while to figure out what wo
?
\externalfigure[smile]
without any other settings, but inkscape must be callable on the command
line (which doesn’t work for me on MacOS any more, must investigate…).
\startMPcode
draw lmt_svg [ filename = "smile.svg"]
\stopMPcode
Now gives the attached but it took me a while
ode:
>
> \starttext
> \startMPcode
> draw lmt_svg [
> filename = "smile.svg"]
> \stopMPcode
> \stoptext
I can confirm the problem also with the regular image call
\externalfigure
Am 12.03.24 um 14:53 schrieb seyal zavira:
> when i want to put some SVGs in my document the svg does not
render properly here is the code:
>
> \starttext
> \startMPcode
> draw lmt_svg [
> filename = "smile.svg"]
> \stop
>
> https://wiki.contextgarden.net/SVG
>
> Le 12/03/2024 à 14:36, seyal.zav...@gmail.com a écrit :
> > hi all.
> >
> > when i want to put some SVGs in my document the svg does not render
> properly here is the code:
> >
> > \starttext
> > \startMPcode
&g
Hi !
Did you have a look at this :
https://wiki.contextgarden.net/SVG
Le 12/03/2024 à 14:36, seyal.zav...@gmail.com a écrit :
hi all.
when i want to put some SVGs in my document the svg does not render properly
here is the code:
\starttext
\startMPcode
draw lmt_svg [
filename = "smil
hi all.
when i want to put some SVGs in my document the svg does not render properly
here is the code:
\starttext
\startMPcode
draw lmt_svg [
filename = "smile.svg"]
\stopMPcode
\stoptext
also when i look at evenmore manual at page15, for font Abelone-FREE the
gradients has rendere
> yesterday, I downloaded context-win64, and tried the test today .
>
>
>
> Here is the test:
>
> \starttext
>
>
>
> \startmode[mkiv]
>
>
>
> \startluacode
>
> tex.sprint("hello")
>
> \stopluacode
>
>
Dear List,
I am sorry, but once again me: I downloaded the last upload from Hans
yesterday, I downloaded context-win64, and tried the test today .
Here is the test:
\starttext
\startmode[mkiv]
\startluacode
tex.sprint("hello")
\stopluacode
\startMPcode
Hi Taco,
thanks for your help. This works for me!
On Jan. 5 2024, at 2:13 pm, Taco Hoekwater wrote:
> Hi,
>
> Here is 'a' way to draw the subpath, at least. I do not have time to come up
> with a nice “thicker in the middle” solution.
> Best wishes,
> Taco
>
>
> \sta
Hi,
Here is 'a' way to draw the subpath, at least. I do not have time to come up
with a nice “thicker in the middle” solution.
Best wishes,
Taco
\startMPcode
numeric u; u=1cm;
%equiangular spiral
numeric a, k ;
a = 2.3; %scaling factor
k = 8.61722335;
path S;
S = right for t=1 upto 360
Hi all,
I have this MWE. Now I want to draw only the subpath of S between gong6 and
gong7 with a red line which is narrower at the two ends and thicker in the
middle part. How to achieve this?
Thanks!
Emanuel
\setuppapersize[A4,landscape]
\starttext
\startMPcode
numeric u; u=1cm;
%equiangular
fBold] [notonaskharabic-Bold]
> [features=fea]
> \definefontsynonym [SerifBoldItalic]
> [notonaskharabic-Bold-Italic] [features=fea]
> \stoptypescript
>
> \starttypescript [notonaskharabic]
> \definetypeface [notonaskharabic] [rm] [seri
[notonaskharabic] [rm] [serif] [notonaskharabic] [default]
\stoptypescript
\usetypescript[notonaskharabic]
\setupbodyfont [RomanFont]
\starttext
\startMPcode
picture p[];
path bb; %bounding box
z0 = (0,0);
z1 = (60,40);
z2 = (40,90);
z3 = (10,70);
z4 = (30,50);
z5 = (90,70);
z6 = (-10,70);
path
width is larger in the lower rectangle).
>>
>> I attach the PDF created with your code.
>>
>> Best regards: Otared
>>
>>
>>
>> On 19 Nov 2023, at 18:56, Fabrice Couvreur
>> wrote:
>>
>> Hi,
>> I don't understand why the hatching
gt;
>>
>>> On 19 Nov 2023, at 18:56, Fabrice Couvreur >> <mailto:fabrice1.couvr...@gmail.com>> wrote:
>>>
>>> Hi,
>>> I don't understand why the hatching of the two rectangles is not the same
>>> color.
>>> Thanks for
the same
> color.
> Thanks for your help.
> Fabrice
>
> \starttext
> \setupbodyfont[8pt]
> \startMPcode
>path p, q, r, b ;
>
>z[0] = (2cm,0cm) ;
>z[1] = (2cm,2cm) ;
>z[2] = (0cm,2cm) ;
>
>
document
On 19 Nov 2023, at 18:56, Fabrice Couvreur <fabrice1.couvr...@gmail.com> wrote:Hi,I don't understand why the hatching of the two rectangles is not the same color. Thanks for your help.Fabrice\starttext \setupbodyfont[8pt] \startMPcode path p, q
Hi,
I don't understand why the hatching of the two rectangles is not the same
color.
Thanks for your help.
Fabrice
\starttext
\setupbodyfont[8pt]
\startMPcode
path p, q, r, b ;
z[0] = (2cm,0cm) ;
z[1] = (2cm,2cm) ;
z[2] = (0cm,2cm
f I insert this piece of code,
> there
> > is a large white space that is created between the horizontal line of the
> > header and the first exercise.
>
> \startMPcode makes an image so it will take space
>
> for definitions use \startMPdefinitions
>
>
> > \
exercise.
\startMPcode makes an image so it will take space
for definitions use \startMPdefinitions
\startMPcode
def suite (expr n, t) =
begingroup
numeric u;
u := 5mm;
pickup pencircle scaled 5pt;
for i=0 upto n:
for j=0 upto n:
drawdot (i*u,j*u) shifted(t
and the first exercise.
Thanks for your help.
Fabrice
\startMPcode
If I’m not wrong, \startMPcode immediately executes the code.
I don’t know why it does if it only contains definitions.
Try \startMPinitializations (executed for every MP instance) or
\startMPdefinitions (only once).
Hraban
\startMPcode
def suite (expr n, t) =
begingroup
numeric u;
u := 5mm;
pickup pencircle scaled 5pt;
for i=0 upto n:
for j=0 upto n:
drawdot (i*u,j*u) shifted(t*u,0) withcolor \MPcolor{darkred};
endfor
endfor
endgroup
enddef;
def Suite (expr n, t) =
begingroup
Hi,
I would like to obtain, if possible, a gray gradient like in the image. My
code uses Metapost but maybe this is possible with Metafun.
Thanks.
Fabrice
\starttext
\startMPcode
u=1.2cm;
interim ahangle := 30;
z0=(0,0);
z1=(3u,0
on it.
Is there a way of doing calculations on the coordinates for the draw using
ConTexT variables like \textheight?
Thank you,
Peter Hopcroft
--
\starttext
Some text
\startMPcode
pickup pensquare scaled 1pt;
draw (0mm,0mm)--(0mm,\textheight) withcolor red
\stopMPcode
More text
\starttikzpicture
\foreach \p in {(6,2)}
{
\tracingall
\startscope[shift={\p}]
\draw[color=green!60, thick] (0,0) -- (1,1);
\stopscope
}
\stoptikzpicture
looks like some parsing issue, are you sure that you can assign \p to
shift this way?
puzzle:
\startMPcode
On 17/07/23 17/07/23, 18:20, Henning Hraban Ramm wrote:
Bonus question: how also to handle the case of
\startMPcode
draw figure "MyFigure" xsized TextWidth ;
...
\stopMPcode
Is MyFigure a pixel image?
You could use \externalfigure within MP code.
The MP operator figure calls \exte
imaging")
report("Now calculating...")
Bonus question: how also to handle the case of
\startMPcode
draw figure "MyFigure" xsized TextWidth ;
...
\stopMPcode
Is MyFigure a pixel image?
You could use \externalfigure within MP code.
Hraban
___
and manually case-by-case would be sufficient.
Any suggestions on how to hook-in such reporting?
Bonus question: how also to handle the case of
\startMPcode
draw figure "MyFigure" xsized TextWidth ;
...
\stopMPcode
--
Alan
Hraban (and others),
You got me thinking so I added this code to end of your code as a bit of
fun. It's code from the luametafun manual to which I added two and a
half lines.
Best Wishes
Keith
%%%
\startMPcode
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor
To: mailing list for ConTeXt users , Henning Hraban
Ramm
I played about with the number of shadow layers and added a wee bit
randomness which gave a nice effect. See the code below and the attached
png.
Best Wishes
Keith
%%%
\startMPcode
steps := 30 ; % number of shadow layers
rulesize
Please, can you explain why the result of lmt_outline is shifted to the
right, if I use it in a macro?
"""
\setupbodyfont[ss,24pt]
\definecolor[tshade][t=.05,a=1,k=1]
\starttexdefinition MyCaption #1
\startMPcode
steps := 5 ; % number of shadow layers
rulesize := BodyF
:
"""
\setupbodyfont[ss,24pt]
\definecolor[tshade][t=.05,a=1,k=1]
\starttexdefinition MyCaption #1
\startMPcode{doublefun}
steps := 10 ;
rulesize := BodyFontSize/steps/3;
for step = 1 upto steps:
draw lmt_outline [
text = "\bf #1",
%style = "bold",
Hi, maybe you remember that I wanted this since 2017...
I finally managed to get a fuzzy background behind text:
"""
\setupbodyfont[ss,24pt]
\definecolor[tshade][t=.05,a=1,k=1]
\starttexdefinition MyCaption #1
\startMPcode{doublefun}
steps := 10 ;
rulesize := BodyFontSize/steps/
actually was \startMPcode; had nothing to do with
\startdocument or your code, sorry.
Also sorry, seems like I can’t help you.
Hraban
___
If your question is of interest to others as well, please add an entry
Am 06.07.23 um 12:02 schrieb Alan Braslau:
On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote:
Hi, if I use \startMPcode to declare variables etc. that I need in
several MP graphics, it always inserts an empty page. How can I avoid
that?
(Actually, I load an external mp file
On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote:
Hi, if I use \startMPcode to declare variables etc. that I need in
several MP graphics, it always inserts an empty page. How can I avoid that?
(Actually, I load an external mp file, and for random value reasons I
must load it only once
Hi, if I use \startMPcode to declare variables etc. that I need in
several MP graphics, it always inserts an empty page. How can I avoid that?
(Actually, I load an external mp file, and for random value reasons I
must load it only once. But the MWE already shows the problem.)
""&quo
l and he knows ConTeXt well. He's quite capable
> of figuring out how to use advanced features and I bet he likes the
> following variant of arrows in text. Next time we meet I'll show him some
> more adaptive tricks (although I bet he can figure them out himself).
>
> \sta
\usedadaptiveheight+\usedadaptivedepth\relax]%
%\egroup
% \stopsetups
\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset .25ex
\bgroup
\startMPcode
drawarrow ((0,0) -- (\the\usedadaptivewidth,0)) randomized
(ExHeight/2);
\stopMPcode
to put large settings into a setups-blocks and
> pass the block to a setup-command.
>
> \startsetups [apage]
> \startMPcode
> StartPage;
> ...
> StopPage;
> \stopMPcode
> \stopsetups
>
> \defineoverlay[apage][\directsetup{apage}]
>
> Wolfgang
>
>
___
,
footer=1cm]
Another useful method is to put large settings into a setups-blocks and
pass the block to a setup-command.
\startsetups [apage]
\startMPcode
StartPage;
...
StopPage;
\stopMPcode
\stopsetups
\defineoverlay[apage][\directsetup{apage}]
Wolfgang
[
backspace = 2.5cm,
margin = 0.5cm,
width = 16cm,
header = 1cm,
footer = 1cm,
]
\setupbackgrounds[state=repeat]
\defineoverlay[apage][
{\startMPcode
StartPage;
definecolor[ name = "MyColor1", r = uniformdeviate(1), g =
uniformdeviate(1), b = uniformdeviate(1) ] ;
definec
\starttext
Test Test
\definefont[bahnlight][name:bahnschriftlight*default]
\startMPcode
picture pic;
pic := thelabel(textext("\bahnlight This is Bahnschrift light in Metafont
0123456789"), (0, 0));
draw pic;
\stopMPcode
\stoptext
Am 20. Januar 2023 18:28:23 MEZ schrieb Guido Bart
[ss] [bahnschrift]
> \setupbodyfont[mainface]
>
> \ss 123456789 Wild! \medskip
>
> \startMPcode
> picture pic;
> pic := thelabel(textext("\ss This is in Metafont 0123456789"), (0, 0));
> draw pic;
> \stopMPcode
>
>
> Greetings Lutz
>
>
> Am 20
Hi Guido,
this works here:
\starttext
Test Test
\usemodule[fonts-variable]
\definefontfamily [mainface] [ss] [bahnschrift]
\setupbodyfont[mainface]
\ss 123456789 Wild! \medskip
\startMPcode
picture pic;
pic := thelabel(textext("\ss This is in Metafont 0123456789"), (0, 0))
\startMPcode
picture pic;
pic := thelabel("This is in Metafont 0123456789", (0, 0));
draw pic;
\stopMPcode
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
mail
eful.
>
> Thanks in advance and happy new year,
> Alex
Another solution is to save the picture:
\startMPcode
draw fullcircle scaled 1cm ;
picture mypicture ; mypicture := currentpicture ;
\stopMPcode
Then, the next call to \startMPcode (or whatever you use) will have
access to the saved p
I just tried but I got an empty file...
Do we agree that I have to replace the two lines with the other two ?
Regarding what you proposed, how to get the same type of hatching in both
figures ?
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
z[0] = (2cm,0cm
on the dimensions of the squares.
some unexpected side effect show up when the unitsquare is xyscaled to a
rectangle like (2.5cm,1cm)
it seems related to the angle chosen
e.g.
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
q := unitsquare xyscaled (1cm,1cm) shifted(0,3cm
Not only, it is also true with the code below :
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
z[0] = (2cm,0cm) ;
z[1] = (2cm,4cm) ;
z[2] = (0cm,2cm) ;
q := llcorner p--z[0]--z[1]--z[2]--cycle ;
r := unitsquare xyscaled (1cm,1cm) shifted(0,3cm
up when the unitsquare is xyscaled to a
rectangle like (2.5cm,1cm)
it seems related to the angle chosen
e.g.
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
q := unitsquare xyscaled (1cm,1cm) shifted(0,3cm) ;
r := unitsquare xyscaled (2.5cm,1cm) shifted(1cm,3cm) ;
b
artlinecorrection[blank]
> > \startmidaligned
> > \switchtobodyfont[9pt]
> > \startMPcode
> > path p, q, r, b ;
> > p := unitsquare xyscaled (4cm,4cm) ;
> > z[0] = (2cm,0cm) ;
> > z[1] = (2cm,4cm) ;
> > z[2]
t; \startlinecorrection[blank]
> \startmidaligned
> \switchtobodyfont[9pt]
> \startMPcode
> path p, q, r, b ;
> p := unitsquare xyscaled (4cm,4cm) ;
> z[0] = (2cm,0cm) ;
> z[1] = (2cm,4cm) ;
> z[2] = (0cm,2cm) ;
> q := llcorner p--z[0]--z[1]--z[2]--cyc
Hi Hans,
When the rectangles are not identical, how to have the same type of
hatching in both ?
Thanks.
Fabrice
\starttext
\startlinecorrection[blank]
\startmidaligned
\switchtobodyfont[9pt]
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
z[0
22 7:49 PM, Fabrice Couvreur via ntg-context wrote:
> > Hello,
> > I notice a strange behavior of the macro numberstriped ( ).
> > Thanks.
> > Fabrice
> >
> > \starttext
> > \switchtobodyfont[9pt]
> > \startMPcode
> >
> >path p
On 9/27/2022 7:49 PM, Fabrice Couvreur via ntg-context wrote:
Hello,
I notice a strange behavior of the macro numberstriped ( ).
Thanks.
Fabrice
\starttext
\switchtobodyfont[9pt]
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
z[0] = (2cm,0cm) ;
z[1] = (2cm
Hello,
I notice a strange behavior of the macro numberstriped ( ).
Thanks.
Fabrice
\starttext
\switchtobodyfont[9pt]
\startMPcode
path p, q, r, b ;
p := unitsquare xyscaled (4cm,4cm) ;
z[0] = (2cm,0cm) ;
z[1] = (2cm,4cm) ;
z[2] = (0cm,2cm) ;
q := llcorner p--z[0]--z[1]--z[2
:
>>
>> The following used to produce three parallel lines.
>> Now it produces one straight line and two arcs.
>>
>> \starttext
>>
>> \startMPcode
>> z0 = origin;
>> z1 = 72dir(45);
>> dotlabel.bot("z0", z0);
>> draw z
Hi,Le 24 août 2022 à 22:50, fv leung via ntg-context <ntg-context@ntg.nl> a écrit :The following used to produce three parallel lines.Now it produces one straight line and two arcs.\starttext\startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z
The following used to produce three parallel lines.
Now it produces one straight line and two arcs.
\starttext
\startMPcode
z0 = origin;
z1 = 72dir(45);
dotlabel.bot("z0", z0);
draw z0--z1;
draw (z0--z1) paralleled -15 withcolor red;
draw (z0--z1) paralleled 15 with
s.
> >
> > draw textext(decimal length unitcircle) ;
> i'll change it to octagon (was only used for some envelope tracing
> experiment)
\startMPcode
fullhexagon := for i=0 upto 5 : .5dir(60i) -- endfor cycle ;
unithexagon := fullhexagon shifted (.5,.5) ;
draw fullhexagon scaled 1cm
l.lft(100-s, (0, (s-2.5)*mm));
> > endfor;
> > \stopMPpage
> >
> > This used to work with previous LMTX versions.
> fixed in next upload
Is this related?
(regression: uniqueMPgraphic drops color)
\startuniqueMPgraphic{red}
draw textext("red?") withcolor red ;
\st
On 7/6/2022 1:36 PM, Henning Hraban Ramm via ntg-context wrote:
Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context:
On 7/6/2022 12:19 PM, fv leung via ntg-context wrote:
My stupid way to get labels of different sizes:
\starttext
\startMPcode
label("normal label", (0, 0));
I've used something like the following before.
\starttext
\startMPcode
label("normal label", (0, 0));
label("{\switchtobodyfont[3pt] tiny label}", (0, 18));
label("{\switchtobodyfont[72pt] giant label}", (0, -72));
\stopMPcode
\stoptext
Henning Hraban R
Am 06.07.22 um 12:45 schrieb Hans Hagen via ntg-context:
On 7/6/2022 12:19 PM, fv leung via ntg-context wrote:
My stupid way to get labels of different sizes:
\starttext
\startMPcode
label("normal label", (0, 0));
label("\setsmallbodyfont small label",
On 7/6/2022 12:19 PM, fv leung via ntg-context wrote:
My stupid way to get labels of different sizes:
\starttext
\startMPcode
label("normal label", (0, 0));
label("\setsmallbodyfont small label", (0, 18));
label("\setbigbodyfont big label", (0,
My stupid way to get labels of different sizes:
\starttext
\startMPcode
label("normal label", (0, 0));
label("\setsmallbodyfont small label", (0, 18));
label("\setbigbodyfont big label", (0, -18));
\stopMPcode
\stoptext
Henning Hraban Ramm via ntg-co
finition of
\includesvgbuffer, here is a simpler example illustrating the issue:
\starttext
\startplacefigure[location=here, title={Test}]
\dontleavehmode\begingroup
\startMPcode
draw fullcircle scaled 2cm;
\stopMPcode\endgroup
\stopplacefigure
\stoptext
font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">16p13.3
>
> \stopbuffer
>
> \starttext
>\placefigure[]{}{\includesvgbuffer[svg][conversion=mp]}
> \stoptext
> % EOF
This has nothing to do with SVG. Looking at the definitio
. Lorem ipsum.
Lorem ipsum. Lorem ipsum. Lorem ipsum.
\startMPcode draw fullcircle scaled 1cm; \stopMPcode\
Lorem ipsum. Lorem ipsum. Lorem ipsum.}
\starttext
\example
\startcolumns[grid=off]
\example
\stopcolumns
\stoptext
-- Max
.
\startMPcode draw fullcircle scaled 1cm; \stopMPcode\
Lorem ipsum. Lorem ipsum. Lorem ipsum.}
\starttext
\example
\startcolumns
\example
\stopcolumns
\stoptext
Best regards,
Marcin Ciura
___
If your question
)
withpen pencircle scaled AdaptiveThickness
withcolor white ;
enddef ;
\stopMPdefinitions
\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-.9\usedadaptivedepth \bgroup
\hss
\startMPcode
TickTock
unctions inside MetaPost strings, the function is not typeset
> correctly. Please consider the following MWE:
>
> \starttext
> \startMPcode
> draw textext("\m{\max_i x_i}");
> \stopMPcode
> \stoptext
>
> which produces the output attached her
the following MWE:
\starttext
\startMPcode
draw textext("\m{\max_i x_i}");
\stopMPcode
\stoptext
which produces the output attached here as an image. Instead of the mfunction
maxᵢ xᵢ
some form of the string mathfunctionhandlelabel is typeset.
I tried to inspect \math_function_ha
ribe what is going wrong I may
> be mistaken.
Strangely, my attachments never make it to the list. Trying again: attached an
image of the output of the tiny MWE –
\starttext
\startMPcode
draw textext("\m{\max_i x_i}"
ndred. A
> tiny MWE:
>
> \starttext
>\startMPcode
>draw textext("\m{\max_i x_i}");
>\stopMPcode
> \stoptext
>
> Could trace it down to '\math_function_handle_label' [math-ini] but not sure
> what MP is doing. Also looked into mp-mlib, mlib-pps
os$.
>
> \processMPbuffer[pointCircle]
>
> \stoptext
Hi Hans and Mikael (and others on the list),
I can confirm that even with the newest LMTX [2022.04.15 20:20] the above might
actually be a bug. mfunctions inside MP strings are not properly rendred. A
tiny MWE:
\starttext
\s
*AdaptiveThickness)
withpen pencircle scaled AdaptiveThickness
withcolor white ;
enddef ;
\stopMPdefinitions
\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset
-.9\usedadaptivedepth \bgroup
\hss
\startMPcode
overview of accessible variables at:
>> https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names
>>
>> Maybe you want something like this?
>>
>> \starttext
>> \setuphead[chapter][number=no]
>> \startchapter[title={My C
cessible variables at:
> https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names
> >
> > Maybe you want something like this?
> >
> > \starttext
> > \setuphead[chapter][number=no]
> > \startchapter[title={My Chapter}]
>
ection-and-subsection-names
>
> Maybe you want something like this?
>
> \starttext
> \setuphead[chapter][number=no]
> \startchapter[title={My Chapter}]
> Hello world!
> \startMPcode
> label("\currentstructurelistnumber\ \currentstructuretitle", origin);
Hi,
There is a good overview of accessible variables at:
https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names
Maybe you want something like this?
\starttext
\setuphead[chapter][number=no]
\startchapter[title={My Chapter}]
Hello world!
\startMPcode
should report the other errors, too.
I'm not using the failing bits myself, so I don't need fix for that.
Motivation is to help find issues with the current release.
Marco
%% metafun > log > error: A primary expression can't begin with ';'
\starttext
\startMPcode
uniquelist(a) ;
On 3/12/2022 3:35 PM, Marco Patzer via ntg-context wrote:
On Mon, 31 Jan 2022 20:02:42 +0100
Marco Patzer via ntg-context wrote:
LMTX seems to have an issue with \asciimode and MetaPost:
\asciimode
\starttext
\startMPcode
fill unitsquare scaled 2cm;
\stopMPcode
\stoptext
Results
On Mon, 31 Jan 2022 20:02:42 +0100
Marco Patzer via ntg-context wrote:
> LMTX seems to have an issue with \asciimode and MetaPost:
>
> \asciimode
> \starttext
> \startMPcode
> fill unitsquare scaled 2cm;
> \stopMPcode
> \stoptext
>
> Results in:
>
It worked, thank you very much.
/Jan-Erik
> 4 mars 2022 kl. 10:59 skrev Hans Hagen :
>
> On 3/3/2022 10:54 PM, Jan-Erik Hägglöf via ntg-context wrote:
>> Dear list!
>> This seems strange, what is wrong? No output from svg-file.
>> \starttext
>> \startMPcod
On 3/3/2022 10:54 PM, Jan-Erik Hägglöf via ntg-context wrote:
Dear list!
This seems strange, what is wrong? No output from svg-file.
\starttext
\startMPcode
picture utf1; utf1:= lmt_svg [ filename = "utfall01b.svg"];
numeric l ; l := bbwidth(utf1);
numeric h ; h := bbh
1 - 100 of 938 matches
Mail list logo